<?php

include('smarty/Smarty.class.php');
global $smarty;
global $db;
global $title;

$smarty = new Smarty;

include('config.php');
include('conn.php');

$smarty->template_dir = 'templates';
$res = $db->prepare("select * from ats_company");
$res->execute();
$res->setFetchMode(PDO::FETCH_ASSOC);

// assign to smarty
$smarty->assign('companydata', $res);

?>